<script setup>
import { useRouter } from 'vue-router'
const router = useRouter();
const goLogin = ()=>{
  router.push('/login')
}
defineProps({
  msg:String
})
</script>

<template>
  <div class="welcome">
    <h2>我是欢迎页面-{{msg}}</h2>
    <el-button @click="goLogin">点我跳转到登陆页面</el-button>
  </div>
</template>

<style scoped>
.welcome{
  background-color: aliceblue;
}
</style>
